<?php
namespace Admin\Model;
class Base {
    public function getClass() {
    	return get_class ( $this );
    }
    
    public function getTable() {
        $class= explode("\\" , $this->getClass ());
    	return strtolower ( $class[2]);
    }
    
    public function getFieldName() {
    	$class= explode("\\" , $this->getClass ());
    	return strtolower ( $class[2]);
    }
}